package BaseQuery;

public class BaseQuery {
	//当前页
	private  Integer pageNow =1;
	//每页要查询的数量
	private Integer pageCount=5;

	public BaseQuery() {
	}

	public BaseQuery(Integer pageNow, Integer pageCount) {
		this.pageNow = pageNow;
		this.pageCount = pageCount;
	}

	public Integer getPageNow() {
		return pageNow;
	}

	public Integer getPageCount() {
		return pageCount;
	}
	//计算每页开始的下标
	public Integer getstartIndex() {
		return (pageNow-1)*pageCount;
	}

	public void setPageNow(Integer pageNow) {
		this.pageNow = pageNow;
	}

	public void setPageCount(Integer pageCount) {
		this.pageCount = pageCount;
	}
}
